<div class="prod-nav">
    <div class="category">
        <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>$search['oid'],'sid'=>$search['sid']])}}"
           @if($search['cid']==0) class="active" @endif>全部</a>
        @foreach($category as $key =>$value)
            <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>$search['oid'],'cid'=>$value->id,'sid'=>$search['sid']])}}"
               @if($search['cid']==$value->id) class="active" @endif>  {{$value->name}}</a>
        @endforeach
    </div>
    <div class="orders">
        <div class="left">
            <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>0,'cid'=>$search['cid'],'sid'=>$search['sid']])}}"
               @if($search['oid']==0) class="active" @endif >综合</a>
            @if($search['oid']==1)
                @if($search['sort']==1)<a
                        href="{{route($route,['keyword'=>$search['keyword'],'oid'=>1,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>2])}}"
                        class="active">最新 ↑</a>
                @else
                    <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>1,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>1])}}"
                       class="active">最新 ↓</a>
                @endif
            @else <a
                    href="{{route($route,['keyword'=>$search['keyword'],'oid'=>1,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>$search['sort']])}}">最新
                ↓</a>
            @endif
            @if($search['oid']==2)
                @if($search['sort']==1)
                    <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>2,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>2])}}"
                            class="active">销量 ↑</a>
                @else
                    <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>2,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>1])}}"
                            class="active">销量 ↓</a>
                @endif
            @else <a
                    href="{{route($route,['keyword'=>$search['keyword'],'oid'=>2,'cid'=>$search['cid'],'sid'=>$search['sid']])}}">销量
                ↓</a>
            @endif
            @if($search['oid']==3)
                @if($search['sort']==1)
                    <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>3,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>2])}}"
                    class="active">价格 ↑</a>
                @else
                    <a  href="{{route($route,['keyword'=>$search['keyword'],'oid'=>3,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>1])}}"
                            class="active">价格 ↓</a>
                @endif
            @else <a
                    href="{{route($route,['keyword'=>$search['keyword'],'oid'=>3,'cid'=>$search['cid'],'sid'=>$search['sid']])}}">价格
                ↓</a>
            @endif
            @if($search['oid']==4)
                @if($search['sort']==1)
                <a  href="{{route($route,['keyword'=>$search['keyword'],'oid'=>4,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>2])}}"
                    class="active">佣金 ↑</a>
                @else
                    <a  href="{{route($route,['keyword'=>$search['keyword'],'oid'=>4,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>1])}}"
                        class="active">佣金 ↓</a>
                @endif
            @else <a
                    href="{{route($route,['keyword'=>$search['keyword'],'oid'=>4,'cid'=>$search['cid'],'sid'=>$search['sid']])}}">佣金
                ↓</a>
            @endif
            @if($search['oid']==5)
                @if($search['sort']==1)
                <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>5,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>2])}}"
                    class="active">面额 ↑</a> @else
                    <a  href="{{route($route,['keyword'=>$search['keyword'],'oid'=>5,'cid'=>$search['cid'],'sid'=>$search['sid'],'sort'=>1])}}"
                            class="active">面额 ↓</a>
                @endif

            @else <a
                    href="{{route($route,['keyword'=>$search['keyword'],'oid'=>5,'cid'=>$search['cid'],'sid'=>$search['sid']])}}">面额
                ↓</a>
            @endif
        </div>
        <div class="right">
            @if($search['sid']==1)
                <a href="{{ route($route,['oid'=>$search['oid'],'cid'=>$search['cid'],'sid'=>0]) }}"
                   class="active"><span><i class="iconfont icon-31xuanze"></i></span>聚划算</a>
                <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>$search['oid'],'cid'=>$search['cid'],'sid'=>3])}}"><span><i
                                class="iconfont"></i></span>淘抢购</a>
            @elseif($search['sid']==2)
                <a href="{{route($route,['oid'=>$search['oid'],'cid'=>$search['cid'],'sid'=>3])}}"><span><i
                                class="iconfont"></i></span>聚划算</a>
                <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>$search['oid'],'cid'=>$search['cid'],'sid'=>0])}}"
                   class="active"><span><i class="iconfont icon-31xuanze"></i></span>淘抢购</a>
            @elseif($search['sid']==3)
                <a href="{{ route($route,['keyword'=>$search['keyword'],'oid'=>$search['oid'],'cid'=>$search['cid'],'sid'=>2]) }}"
                   class="active"><span><i class="iconfont icon-31xuanze"></i></span>聚划算</a>
                <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>$search['oid'],'cid'=>$search['cid'],'sid'=>1])}}"
                   class="active"><span><i class="iconfont icon-31xuanze"></i></span>淘抢购</a>
            @else
                <a href="{{ route($route,['keyword'=>$search['keyword'],'oid'=>$search['oid'],'cid'=>$search['cid'],'sid'=>1]) }}"><span><i
                                class="iconfont "></i></span>聚划算</a>
                <a href="{{route($route,['keyword'=>$search['keyword'],'oid'=>$search['oid'],'cid'=>$search['cid'],'sid'=>2])}}"><span><i
                                class="iconfont"></i></span>淘抢购</a>
            @endif
        </div>
    </div>
</div>